home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PD Collection CD 1
/
PD Collection CD 1.iso
/
programer2
/
pari2
/
pari
/
other
/
Makefile_p
< prev
next >
Wrap
Makefile
|
1991-10-09
|
3KB
|
128 lines
# General Makefile for C-version of gp
# Change these installation directories to suit your needs
LIBDIR = /usr/local/lib
BINDIR = /usr/local/bin
INCLUDEDIR = /usr/include/pari-include
CC = cc
# if you use CC=gcc, you must add -traditional in the compilation options
# of plot.o. You can also (if you want to debug gp yourself) add the -g
# option in CFLAGS. However, remember that, while gcc accepts -g and -O
# simultaneously, cc does not.
# If you are running under X11, add the files plot.c and plot.X to the Makefile
# and plot.o to OBJS (see Makefile.sun3).
CFLAGS = -O -c
OBJS=mp.o anal.o alglin1.o alglin2.o base.o arith1.o arith2.o bibli1.o bibli2.o elliptic.o es.o gen1.o gen2.o gen3.o init.o errmessages.o helpmessages.o polarit1.o polarit2.o trans1.o trans2.o trans3.o version.o
# Be sure to "make clean" before doing a
# make on a different architecture
all: genpari.h gp
gp: gp.o $(OBJS) plotdummy.o genpari.h
$(CC) -O -o gp gp.o $(OBJS) plotdummy.o -lm
genpari.h: genpariother.h
rm -f genpari.h;ln -s genpariother.h genpari.h;
mp.o: mp.c
$(CC) $(CFLAGS) mp.c
gp.o: gp.c
$(CC) $(CFLAGS) gp.c
alglin1.o: alglin1.c
$(CC) $(CFLAGS) alglin1.c
alglin2.o: alglin2.c
$(CC) $(CFLAGS) alglin2.c
anal.o: anal.c
$(CC) $(CFLAGS) anal.c
arith1.o: arith1.c
$(CC) $(CFLAGS) arith1.c
arith2.o: arith2.c
$(CC) $(CFLAGS) arith2.c
base.o: base.c
$(CC) $(CFLAGS) base.c
bibli1.o: bibli1.c
$(CC) $(CFLAGS) bibli1.c
bibli2.o: bibli2.c
$(CC) $(CFLAGS) bibli2.c
elliptic.o: elliptic.c
$(CC) $(CFLAGS) elliptic.c
es.o: es.c
$(CC) $(CFLAGS) es.c
gen1.o: gen1.c
$(CC) $(CFLAGS) gen1.c
gen2.o: gen2.c
$(CC) $(CFLAGS) gen2.c
gen3.o: gen3.c
$(CC) $(CFLAGS) gen3.c
init.o: init.c
$(CC) $(CFLAGS) init.c
errmessages.o: errmessages.c
$(CC) $(CFLAGS) errmessages.c
helpmessages.o: helpmessages.c
$(CC) $(CFLAGS) helpmessages.c
plotdummy.o: plotdummy.c
$(CC) $(CFLAGS) plotdummy.c
polarit1.o: polarit1.c
$(CC) $(CFLAGS) polarit1.c
polarit2.o: polarit2.c
$(CC) $(CFLAGS) polarit2.c
trans1.o: trans1.c
$(CC) $(CFLAGS) trans1.c
trans2.o: trans2.c
$(CC) $(CFLAGS) trans2.c
trans3.o: trans3.c
$(CC) $(CFLAGS) trans3.c
version.o: versionport.c
$(CC) $(CFLAGS) -o version.o versionport.c
manual:
(cd tex;make manual)
install: plotdummy.o
install -c genpari.h $(INCLUDEDIR)
install -c gencom.h $(INCLUDEDIR)
install -c genport.h $(INCLUDEDIR)
install -c erreurs.h $(INCLUDEDIR)
ar r libpari.a $(OBJS) plotdummy.o
install libpari.a $(LIBDIR)
ranlib $(LIBDIR)/libpari.a
install -c -s gp $(BINDIR)
strip $(BINDIR)/gp
clean:
-\rm *.o libpari.a gp genpari.h *.log *.dvi *.std *.idx *.toc; \
(cd tex;rm -f *.log *.dvi *.std *.idx *.toc)